package com.momomian.common.exception;


import com.momomian.common.enums.ResCodeEnum;

/**
 * @author momomian
 * @date 2021/12/28
 * 抛出异常函数
 */
@FunctionalInterface
public interface ThrowExceptionFunction {

    /**
     * 抛出异常信息
     *
     * @param resCode 异常信息
     * @return void
     **/
    void throwMsg(ResCodeEnum resCode);

}
